/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.aeso.betabit.util;

import br.aeso.betabit.service.soap.ApostadorService;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;

/**
 *
 * @author Edson
 */
public class SOAPClient {
    
    public static ApostadorService getService() throws Exception {
        URL url = new URL("http://localhost:8082/betabit/apostadorservice?wsdl");
        QName qname = new QName("http://soap.service.betabit.aeso.br/", "ApostadorServiceImplService");
        Service service = Service.create(url, qname);
 
        return service.getPort(ApostadorService.class);
    }
}
